package com.amt.olcacon.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 任务报告表实体类
 */
@Data
@TableName("task_report")
public class TaskReportEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @TableField("created_by")
    private String createdBy;

    @TableField("updated_by")
    private String updatedBy;

    @TableField("task")
    private Long task;

    @TableField("exchange")
    private Long exchange;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("unit")
    private Long unit;

    @TableField("partition_coefficient")
    private BigDecimal partitionCoefficient;

    @TableField("voucher")
    private String voucher;

    @TableField("flow_property")
    private Long flowProperty;

    @TableField("is_defult_process")
    private Boolean isDefaultProcess;

    @TableField("product_process_id")
    private Long productProcessId;

    @TableField("product_flow_id")
    private Long productFlowId;

    @TableField("tbl_process_id")
    private Long tblProcessId;

    @TableField("tbl_flow_id")
    private Long tblFlowId;

    @TableField("is_input")
    private Boolean isInput;

    @TableField("is_product")
    private Boolean isProduct;

    @TableField("product_flow_type")
    private Integer productFlowType;

    @TableField("level")
    private Integer level;

    @TableField("product_process_name")
    private String productProcessName;

    @TableField("product_flow_name")
    private String productFlowName;

    @TableField("tbl_flow_name")
    private String tblFlowName;

    @TableField("is_main_product")
    private Boolean isMainProduct;

    @TableField("provider_id")
    private Long providerId;

    @TableField("provider_type")
    private Integer providerType;

    @TableField("bg_database")
    private Integer bgDatabase;

    @TableField("tbl_flow_ref_id")
    private String tblFlowRefId;

    @TableField("tbl_process_ref_id")
    private String tblProcessRefId;

    @TableField("flow_property_factor")
    private Double conversionFactor;

    @TableField("tbl_provider_id")
    private Long tblProviderId;
}